﻿#ifndef PST_SELECTALLBUTTONBAR_H
#define PST_SELECTALLBUTTONBAR_H

#include <QWidget>
#include <QHBoxLayout>
#include <QLabel.h>
#include "API_BaseWidget.h"
QT_BEGIN_NAMESPACE
namespace Ui { class SelectAllButtonBar; };
QT_END_NAMESPACE

namespace BaseWidget
{
    class API_BASEWIDGET SelectAllButtonBar : public QWidget
    {
        Q_OBJECT
    public:
        SelectAllButtonBar(QWidget* parent = nullptr);
        ~SelectAllButtonBar();

        void setCheckBoxState(int state,bool isListItemChanged = false);//0:unchecked, 1:partially checked, 2:checked

    signals:
        void signal_ModifyListSelectedStatus(int state);//0:unchecked, 1:partially checked, 2:checked

    private:
        Ui::SelectAllButtonBar* ui;
    };
}
#endif
